3.1454 \(\int \frac{(A+B x) (d+e x)^{3/2}}{(a-c x^2)^2} \, dx\)

Optimal. Leaf size=238 \[ -\frac{\sqrt{\sqrt{c} d-\sqrt{a} e} \left (\sqrt{a} A \sqrt{c} e-3 a B e+2 A c d\right ) \tanh ^{-1}\left (\frac{\sqrt [4]{c} \sqrt{d+e x}}{\sqrt{\sqrt{c} d-\sqrt{a} e}}\right )}{4 a^{3/2} c^{7/4}}+\frac{\sqrt{\sqrt{a} e+\sqrt{c} d} \left (-\sqrt{a} A \sqrt{c} e-3 a B e+2 A c d\right ) \tanh ^{-1}\left (\frac{\sqrt [4]{c} \sqrt{d+e x}}{\sqrt{\sqrt{a} e+\sqrt{c} d}}\right )}{4 a^{3/2} c^{7/4}}+\frac{\sqrt{d+e x} (x (a B e+A c d)+a (A e+B d))}{2 a c \left (a-c x^2\right )} \]

[Out]

(Sqrt[d + e*x]*(a*(B*d + A*e) + (A*c*d + a*B*e)*x))/(2*a*c*(a - c*x^2)) - (Sqrt[Sqrt[c]*d - Sqrt[a]*e]*(2*A*c*
d - 3*a*B*e + Sqrt[a]*A*Sqrt[c]*e)*ArcTanh[(c^(1/4)*Sqrt[d + e*x])/Sqrt[Sqrt[c]*d - Sqrt[a]*e]])/(4*a^(3/2)*c^
(7/4)) + (Sqrt[Sqrt[c]*d + Sqrt[a]*e]*(2*A*c*d - 3*a*B*e - Sqrt[a]*A*Sqrt[c]*e)*ArcTanh[(c^(1/4)*Sqrt[d + e*x]
)/Sqrt[Sqrt[c]*d + Sqrt[a]*e]])/(4*a^(3/2)*c^(7/4))

________________________________________________________________________________________

Rubi [A]  time = 0.391526, antiderivative size = 238, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.16, Rules used = {819, 827, 1166, 208} \[ -\frac{\sqrt{\sqrt{c} d-\sqrt{a} e} \left (\sqrt{a} A \sqrt{c} e-3 a B e+2 A c d\right ) \tanh ^{-1}\left (\frac{\sqrt [4]{c} \sqrt{d+e x}}{\sqrt{\sqrt{c} d-\sqrt{a} e}}\right )}{4 a^{3/2} c^{7/4}}+\frac{\sqrt{\sqrt{a} e+\sqrt{c} d} \left (-\sqrt{a} A \sqrt{c} e-3 a B e+2 A c d\right ) \tanh ^{-1}\left (\frac{\sqrt [4]{c} \sqrt{d+e x}}{\sqrt{\sqrt{a} e+\sqrt{c} d}}\right )}{4 a^{3/2} c^{7/4}}+\frac{\sqrt{d+e x} (x (a B e+A c d)+a (A e+B d))}{2 a c \left (a-c x^2\right )} \]

Antiderivative was successfully verified.

[In]

Int[((A + B*x)*(d + e*x)^(3/2))/(a - c*x^2)^2,x]

[Out]

(Sqrt[d + e*x]*(a*(B*d + A*e) + (A*c*d + a*B*e)*x))/(2*a*c*(a - c*x^2)) - (Sqrt[Sqrt[c]*d - Sqrt[a]*e]*(2*A*c*
d - 3*a*B*e + Sqrt[a]*A*Sqrt[c]*e)*ArcTanh[(c^(1/4)*Sqrt[d + e*x])/Sqrt[Sqrt[c]*d - Sqrt[a]*e]])/(4*a^(3/2)*c^
(7/4)) + (Sqrt[Sqrt[c]*d + Sqrt[a]*e]*(2*A*c*d - 3*a*B*e - Sqrt[a]*A*Sqrt[c]*e)*ArcTanh[(c^(1/4)*Sqrt[d + e*x]
)/Sqrt[Sqrt[c]*d + Sqrt[a]*e]])/(4*a^(3/2)*c^(7/4))

Rule 819

Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))*((a_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Simp[((d + e*x)^(
m - 1)*(a + c*x^2)^(p + 1)*(a*(e*f + d*g) - (c*d*f - a*e*g)*x))/(2*a*c*(p + 1)), x] - Dist[1/(2*a*c*(p + 1)),
Int[(d + e*x)^(m - 2)*(a + c*x^2)^(p + 1)*Simp[a*e*(e*f*(m - 1) + d*g*m) - c*d^2*f*(2*p + 3) + e*(a*e*g*m - c*
d*f*(m + 2*p + 2))*x, x], x], x] /; FreeQ[{a, c, d, e, f, g}, x] && NeQ[c*d^2 + a*e^2, 0] && LtQ[p, -1] && GtQ
[m, 1] && (EqQ[d, 0] || (EqQ[m, 2] && EqQ[p, -3] && RationalQ[a, c, d, e, f, g]) ||  !ILtQ[m + 2*p + 3, 0])

Rule 827

Int[((f_.) + (g_.)*(x_))/(Sqrt[(d_.) + (e_.)*(x_)]*((a_) + (c_.)*(x_)^2)), x_Symbol] :> Dist[2, Subst[Int[(e*f
 - d*g + g*x^2)/(c*d^2 + a*e^2 - 2*c*d*x^2 + c*x^4), x], x, Sqrt[d + e*x]], x] /; FreeQ[{a, c, d, e, f, g}, x]
 && NeQ[c*d^2 + a*e^2, 0]

Rule 1166

Int[((d_) + (e_.)*(x_)^2)/((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Di
st[e/2 + (2*c*d - b*e)/(2*q), Int[1/(b/2 - q/2 + c*x^2), x], x] + Dist[e/2 - (2*c*d - b*e)/(2*q), Int[1/(b/2 +
 q/2 + c*x^2), x], x]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - a*e^2, 0] && PosQ[b^
2 - 4*a*c]

Rule 208

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-(a/b), 2]*ArcTanh[x/Rt[-(a/b), 2]])/a, x] /; FreeQ[{a,
b}, x] && NegQ[a/b]

Rubi steps

\begin{align*} \int \frac{(A+B x) (d+e x)^{3/2}}{\left (a-c x^2\right )^2} \, dx &=\frac{\sqrt{d+e x} (a (B d+A e)+(A c d+a B e) x)}{2 a c \left (a-c x^2\right )}-\frac{\int \frac{\frac{1}{2} \left (-2 A c d^2+3 a B d e+a A e^2\right )-\frac{1}{2} e (A c d-3 a B e) x}{\sqrt{d+e x} \left (a-c x^2\right )} \, dx}{2 a c}\\ &=\frac{\sqrt{d+e x} (a (B d+A e)+(A c d+a B e) x)}{2 a c \left (a-c x^2\right )}-\frac{\operatorname{Subst}\left (\int \frac{\frac{1}{2} d e (A c d-3 a B e)+\frac{1}{2} e \left (-2 A c d^2+3 a B d e+a A e^2\right )-\frac{1}{2} e (A c d-3 a B e) x^2}{-c d^2+a e^2+2 c d x^2-c x^4} \, dx,x,\sqrt{d+e x}\right )}{a c}\\ &=\frac{\sqrt{d+e x} (a (B d+A e)+(A c d+a B e) x)}{2 a c \left (a-c x^2\right )}+\frac{\left (\left (\sqrt{c} d+\sqrt{a} e\right ) \left (2 A c d-3 a B e-\sqrt{a} A \sqrt{c} e\right )\right ) \operatorname{Subst}\left (\int \frac{1}{c d+\sqrt{a} \sqrt{c} e-c x^2} \, dx,x,\sqrt{d+e x}\right )}{4 a^{3/2} c}-\frac{\left (\left (\sqrt{c} d-\sqrt{a} e\right ) \left (2 A c d-3 a B e+\sqrt{a} A \sqrt{c} e\right )\right ) \operatorname{Subst}\left (\int \frac{1}{c d-\sqrt{a} \sqrt{c} e-c x^2} \, dx,x,\sqrt{d+e x}\right )}{4 a^{3/2} c}\\ &=\frac{\sqrt{d+e x} (a (B d+A e)+(A c d+a B e) x)}{2 a c \left (a-c x^2\right )}-\frac{\sqrt{\sqrt{c} d-\sqrt{a} e} \left (2 A c d-3 a B e+\sqrt{a} A \sqrt{c} e\right ) \tanh ^{-1}\left (\frac{\sqrt [4]{c} \sqrt{d+e x}}{\sqrt{\sqrt{c} d-\sqrt{a} e}}\right )}{4 a^{3/2} c^{7/4}}+\frac{\sqrt{\sqrt{c} d+\sqrt{a} e} \left (2 A c d-3 a B e-\sqrt{a} A \sqrt{c} e\right ) \tanh ^{-1}\left (\frac{\sqrt [4]{c} \sqrt{d+e x}}{\sqrt{\sqrt{c} d+\sqrt{a} e}}\right )}{4 a^{3/2} c^{7/4}}\\ \end{align*}

Mathematica [A]  time = 0.385335, size = 244, normalized size = 1.03 \[ \frac{2 \sqrt{a} c^{3/4} \sqrt{d+e x} (a A e+a B (d+e x)+A c d x)+\left (c x^2-a\right ) \sqrt{\sqrt{c} d-\sqrt{a} e} \left (\sqrt{a} A \sqrt{c} e-3 a B e+2 A c d\right ) \tanh ^{-1}\left (\frac{\sqrt [4]{c} \sqrt{d+e x}}{\sqrt{\sqrt{c} d-\sqrt{a} e}}\right )-\left (c x^2-a\right ) \sqrt{\sqrt{a} e+\sqrt{c} d} \left (-\sqrt{a} A \sqrt{c} e-3 a B e+2 A c d\right ) \tanh ^{-1}\left (\frac{\sqrt [4]{c} \sqrt{d+e x}}{\sqrt{\sqrt{a} e+\sqrt{c} d}}\right )}{4 a^{3/2} c^{7/4} \left (a-c x^2\right )} \]

Antiderivative was successfully verified.

[In]

Integrate[((A + B*x)*(d + e*x)^(3/2))/(a - c*x^2)^2,x]

[Out]

(2*Sqrt[a]*c^(3/4)*Sqrt[d + e*x]*(a*A*e + A*c*d*x + a*B*(d + e*x)) + Sqrt[Sqrt[c]*d - Sqrt[a]*e]*(2*A*c*d - 3*
a*B*e + Sqrt[a]*A*Sqrt[c]*e)*(-a + c*x^2)*ArcTanh[(c^(1/4)*Sqrt[d + e*x])/Sqrt[Sqrt[c]*d - Sqrt[a]*e]] - Sqrt[
Sqrt[c]*d + Sqrt[a]*e]*(2*A*c*d - 3*a*B*e - Sqrt[a]*A*Sqrt[c]*e)*(-a + c*x^2)*ArcTanh[(c^(1/4)*Sqrt[d + e*x])/
Sqrt[Sqrt[c]*d + Sqrt[a]*e]])/(4*a^(3/2)*c^(7/4)*(a - c*x^2))

________________________________________________________________________________________

Maple [B]  time = 0.036, size = 694, normalized size = 2.9 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((B*x+A)*(e*x+d)^(3/2)/(-c*x^2+a)^2,x)

[Out]

-1/2*e/(c*e^2*x^2-a*e^2)/a*(e*x+d)^(3/2)*A*d-1/2*e^2/(c*e^2*x^2-a*e^2)/c*(e*x+d)^(3/2)*B-1/2*e^3/(c*e^2*x^2-a*
e^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+(
a*c*e^2)^(1/2))*c)^(1/2)*arctan((e*x+d)^(1/2)*c/((-c*d+(a*c*e^2)^(1/2))*c)^(1/2))*B

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (B x + A\right )}{\left (e x + d\right )}^{\frac{3}{2}}}{{\left (c x^{2} - a\right )}^{2}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)*(e*x+d)^(3/2)/(-c*x^2+a)^2,x, algorithm="maxima")

[Out]

integrate((B*x + A)*(e*x + d)^(3/2)/(c*x^2 - a)^2, x)

________________________________________________________________________________________

Fricas [B]  time = 3.89248, size = 4778, normalized size = 20.08 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)*(e*x+d)^(3/2)/(-c*x^2+a)^2,x, algorithm="fricas")

[Out]

1/8*((a*c^2*x^2 - a^2*c)*sqrt((4*A^2*c^2*d^3 - 12*A*B*a*c*d^2*e + 6*A*B*a^2*e^3 + a^3*c^3*sqrt((36*A^2*B^2*c^2
*d^2*e^4 - 12*(9*A*B^3*a*c + A^3*B*c^2)*d*e^5 + (81*B^4*a^2 + 18*A^2*B^2*a*c + A^4*c^2)*e^6)/(a^3*c^7)) + 3*(3
*B^2*a^2 - A^2*a*c)*d*e^2)/(a^3*c^3))*log((24*A^3*B*c^3*d^3*e^2 - 4*(27*A^2*B^2*a*c^2 + A^4*c^3)*d^2*e^3 + 6*(
27*A*B^3*a^2*c + A^3*B*a*c^2)*d*e^4 - (81*B^4*a^3 - A^4*a*c^2)*e^5)*sqrt(e*x + d) + (6*A^2*B*a^2*c^3*d*e^3 - (
9*A*B^2*a^3*c^2 + A^3*a^2*c^3)*e^4 - (2*A*a^3*c^6*d - 3*B*a^4*c^5*e)*sqrt((36*A^2*B^2*c^2*d^2*e^4 - 12*(9*A*B^
3*a*c + A^3*B*c^2)*d*e^5 + (81*B^4*a^2 + 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*e^6)/(a^3*c^7)) + 3*(3*B^2*a^2 - A^2*a*c)*d*e^2)/(a^3*c^3))*log((24
*A^3*B*c^3*d^3*e^2 - 4*(27*A^2*B^2*a*c^2 + A^4*c^3)*d^2*e^3 + 6*(27*A*B^3*a^2*c + A^3*B*a*c^2)*d*e^4 - (81*B^4
*a^3 - A^4*a*c^2)*e^5)*sqrt(e*x + d) - (6*A^2*B*a^2*c^3*d*e^3 - (9*A*B^2*a^3*c^2 + A^3*a^2*c^3)*e^4 + (2*A*a^3
*c^6*d - 3*B*a^4*c^5*e)*sqrt((36*A^2*B^2*c^2*d^2*e^4 - 12*(9*A*B^3*a*c + A^3*B*c^2)*d*e^5 + (81*B^4*a^2 + 18*A
^2*B^2*a*c + A^4*c^2)*e^6)/(a^3*c^7)))*sqrt((4*A^2*c^2*d^3 - 12*A*B*a*c*d^2*e + 6*A*B*a^2*e^3 - a^3*c^3*sqrt((
36*A^2*B^2*c^2*d^2*e^4 - 12*(9*A*B^3*a*c + A^3*B*c^2)*d*e^5 + (81*B^4*a^2 + 18*A^2*B^2*a*c + A^4*c^2)*e^6)/(a^
3*c^7)) + 3*(3*B^2*a^2 - A^2*a*c)*d*e^2)/(a^3*c^3))) - 4*(B*a*d + A*a*e + (A*c*d + B*a*e)*x)*sqrt(e*x + d))/(a
*c^2*x^2 - a^2*c)

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)*(e*x+d)**(3/2)/(-c*x**2+a)**2,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)*(e*x+d)^(3/2)/(-c*x^2+a)^2,x, algorithm="giac")

[Out]

Timed out